import { IModuleRegistry, ISlotRegister, IRegisterProps } from '../../../core';
import { ISideBarProps, SideBar } from './SideBar';
import libs from '../../libs';

export default class SideBarModule implements IModuleRegistry {

    registerComponent(register: ISlotRegister) {
        register.register({
            component: SideBar as IRegisterProps['component'],
            props: {
                items: [
                    {
                        label: '原子组件',
                        key: 'basic',
                    },
                    {
                        label: 'antd组件库',
                        key: 'antd',
                    },
                ] as ISideBarProps['items']
            },  
            slot: 'layout-sideLeft', 
            componentSlot: ['sideBar']  
        })

        register.register({
            component: libs as IRegisterProps['component'],
            slot: 'sideBar', 
        })
        
    }


}